<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>2.构造函数</title>
	</head>
	<body>
		<script type="text/javascript" >
			function Person (name,age){
				this.name = name
				this.age = age
			}
			function Dog (name,age){
				this.name = name
				this.age = age
			}

			let p1 = new Person('天禹',18)
			let p2 = new Dog('wc',18)
			console.log(p1)
			console.log(p2)
			console.log(Person)

		</script>
	</body>
</html>